package com.xhwh.wx.orm.model;

import com.fasterxml.jackson.annotation.JsonView;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by zsq on 3/20/15.
 */
@Entity
@Table(name = "artists")
public class Artist {
    @Id
    @Column(name = "id")
    public long id;

    @Column(name = "name")
    public String name;

    @JsonView(Artist.class)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JsonView(Artist.class)
    public String getName() {
        return name;
    }

}